#ifndef __PUBLIC_H__
#define __PUBLIC_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "debug.h"
#include "leds.h"
#include "sig-manager.h"

#define LEDS "/dev/leds"

#define true  1
#define false 0

/* signal define */
struct led_info
{
	int dev;
};

struct led_operation
{
	void (*bright)(struct led_info *);
	void (*extinguish)(int dev);
	void (*flash)(int dev);
};

extern int b_quit;

int xy_led_open(void);
void xy_green_bright(void);
void xy_green_extinguish(void);
void xy_yellow_bright(void);
void xy_yellow_extinguish(void);
void xy_red_bright(void);
void xy_red_extinguish(void);
int xy_udisk_thread_run(void);
int xy_network_thread_run(void);

#ifdef __cplusplus
}
#endif

#endif /* __PUBLIC_H__ */
